import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {MesLogComponent} from './mes-log.component';

const routes: Routes = [
    {
        path: '', component: MesLogComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-mes-log/add-mes-log.module#AddMesLogModule'},
            {path: 'list', loadChildren: './list-mes-log/list-mes-log.module#ListMesLogModule'},
            {path: 'modify', loadChildren: './modify-mes-log/modify-mes-log.module#ModifyMesLogModule'},
            {path: 'report', loadChildren: './report-mes-log/report-mes-log.module#ReportMesLogModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class MesLogRoutingModule {
}
